﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DMTroube_ZeKer.Control
{
	public partial class BroadSideTool_dm : UserControl
	{
		private List<string>? _tools;
		public List<string>? Tools
		{
			get
			{
				return _tools;
			}
			set
			{
				_tools = value;
				if (_tools?.Count > 0)
				{
					foreach (var item in _tools)
					{
						Label label = new Label();
						label.BackColor = Color.FromArgb(52, 152, 219);
						label.BorderStyle = BorderStyle.FixedSingle;
						label.ForeColor = Color.FromArgb(236, 240, 241);
						label.Size = new Size(23, 78);
						label.TabIndex = 0;
						label.Text = item;
						label.TextAlign = ContentAlignment.MiddleCenter;
						flowLayoutPanel1.Controls.Add(label);
					}
				}
			}
		}
		public BroadSideTool_dm()
		{
			InitializeComponent();
		}
	}
}
